{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/fjustwan/Desktop/Log_AppendixC.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}27 Apr 2020, 09:23:06

{com}. ttest sdo_scale, by(q9)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
      NO {c |}{res}{col 12}    298{col 22} 1.917785{col 34} .0432735{col 46} .7470159{col 58} 1.832624{col 70} 2.002947
     {txt}YES {c |}{res}{col 12}    375{col 22} 1.798667{col 34} .0348717{col 46} .6752883{col 58} 1.730097{col 70} 1.867236
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    673{col 22} 1.851412{col 34} .0273639{col 46} .7098805{col 58} 1.797683{col 70} 1.905141
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} .1191186{col 34} .0549384{col 58} .0112466{col 70} .2269905
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}NO{txt}) - mean({res}YES{txt})                                   t = {res}  2.1682
{txt}Ho: diff = 0                                     degrees of freedom = {res}     671

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9848         {txt}Pr(|T| > |t|) = {res}0.0305          {txt}Pr(T > t) = {res}0.0152

{com}. ttest sdo_scale, by(nationalism_binary)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}    151{col 22} 1.708609{col 34} .0550652{col 46} .6766526{col 58} 1.599806{col 70} 1.817413
       {txt}1 {c |}{res}{col 12}    523{col 22} 1.894837{col 34} .0311684{col 46}  .712795{col 58} 1.833607{col 70} 1.956068
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    674{col 22} 1.853116{col 34} .0272957{col 46} .7086375{col 58} 1.799521{col 70} 1.906711
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.1862282{col 34} .0651195{col 58}-.3140903{col 70}-.0583661
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -2.8598
{txt}Ho: diff = 0                                     degrees of freedom = {res}     672

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0022         {txt}Pr(|T| > |t|) = {res}0.0044          {txt}Pr(T > t) = {res}0.9978

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/fjustwan/Desktop/Log_AppendixC.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}27 Apr 2020, 09:23:11
{txt}{.-}
{smcl}
{txt}{sf}{ul off}